home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 8 / Mac Magazin and MacEasy Magazine CD - Issue 08.iso / Sharewarebibliothek / Updater⁄Infos / Frontier 2.0 => 2.0.1 Upgrader / Install Files / DocServer Docs / date.set < prev    next >
Text File  |  1993-02-25  |  1KB  |  26 lines

  1.  
  2. Verb    date.set
  3. Syntax    date.set (day, month, year, hour, minute, second)
  4. Parameters    day is a number representing the day component of the date you are defining.
  5. month is a number representing the month component of the date you are defining.
  6. year is a number representing the year component of the date you are defining.
  7. hour is a number representing the hour component of the date you are defining.
  8. minute is a number representing the minute component of the date you are defining.
  9. second is a number representing the seconds component of the date you are defining.
  10. Action    Converts the six arguments into a date value, performing the necessary date arithmetic to convert to a valid date and time.
  11. Returns    The date
  12. Examples    date.set (23, 9, 91, 0, 0, 0)
  13.     » 9/23/91 ; 12:00 AM
  14.  
  15. Note in this example that the first day is not in the range of September dates: 
  16.     date.set (56, 9, 91, 0, 0, 0)
  17.         » 10/26/91 ; 12:00 AM 
  18. Frontier calculates the new date 26 days after the end of September (which has 30 days), arriving at Oct. 26.
  19.  
  20. date.set (13, 13, 91, 9, 15, 0)
  21.     » 1/13/92 ; 9:15 AM 
  22. There is no 13th month! Frontier goes to the first month past the 12th and reaches January. It knows it crossed a year boundary, so it makes the year 1992.
  23. Notes    This verb does not affect the Macintosh system clock.
  24. See Also    date.get
  25. clock.set
  26.